package com.koalac.ironman.widget;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

import com.foot.travel.R;
import com.foot.travel.activity.LoginActivity;
import com.koalac.ironman.util.BaseDialogHelper;

public class LoginDialog extends BaseDialogHelper{

    public LoginDialog(Context context) {
	super(context);
    }

    @Override
    protected void init(View contentView) {
	contentView.findViewById(R.id.go_to_login).setOnClickListener(new OnClickListener() {
	    
	    @Override
	    public void onClick(View v) {
		dismissDialog();
		mContext.startActivity(new Intent(mContext,LoginActivity.class));
	    }
	});
	contentView.findViewById(R.id.cancel).setOnClickListener(new OnClickListener() {
	    
	    @Override
	    public void onClick(View v) {
		dismissDialog();
	    }
	});
    }

    @Override
    protected int getLayoutID() {
	return R.layout.dialog_login;
    }

}
